package com.bwie.controller;
import com.bwie.domain.Coupon;
import com.bwie.service.CouponService;
import com.bwie.service.impl.CouponServiceImpl;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import org.springframework.web.bind.annotation.*;

import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
* (t_coupon)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/coupon/index")
public class CouponController {
/**
* 服务对象
*/
    @Autowired
    private CouponService couponService;

    @PostMapping("/getCouponList")
    public R getCouponList(@RequestBody Coupon coupon){
        return couponService.getCouponList(coupon);
    }

    @PostMapping("/status01")
    public R status01(@RequestBody List<Coupon> couponList){
        return couponService.status01(couponList);
    }

    @PostMapping("/status02")
    public R status02(@RequestBody List<Coupon> couponList){
        return couponService.status02(couponList);
    }

    @PostMapping("/status03")
    public R status03(@RequestBody List<Coupon> couponList){
        return couponService.status03(couponList);
    }
}
